<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title>河北农业大学学生处</title>
		<link rel="shortcut icon" href="/images/hebau.png"/>
		<link rel="stylesheet" href="/css/style1.css" type="text/css" media="all" />
		<script type="text/javascript" src="/js/jquery-1.8.3.min.js" ></script>
	</head>

	<body>
		<!--头部-->
		<div class="header clearfix">
		    <div class="top_logo">
		    	<div class="wid_main fix">
				<a href="/"><img src="/images/xshchlogo_b6.png"/></a>
				<img src="/images/xgzx.jpg" class="xgzx"/>
		    	</div>
		    </div>
		</div>
		<!--二级横向菜单-->
		{template 'content', 'header'}
		
		<!--二级横向菜单结束-->
		<!--<div id="slider-box" style="background:url(images/slider4.jpg) center center;"></div>-->
		<!-- detail -->
		<div id="detail2-box" class="clearfix">
			<div class="tit-80"><a href="{siteurl($siteid)}">首页</a><span> > </span>{catpos($catid)}</div>
			<div class="tabula-box">
				<div class="max-tit">{$CATEGORYS[$catid][catname]}</div>
				<ul>
					<li><a href="#">{$CATEGORYS[$catid][catname]}</a></li>
				</ul>
			</div>

			<div class="content-box">
				<div class="content"> 
					<h1>{$title}</h1>
					<p style="text-align: center;">
						{php $admin_db = pc_base::load_model('admin_model'); $_realname = $admin_db->get_one(array('username'=>$username),'realname'); $realname = $_realname[realname]}

						<span style="margin-right: 20px;color:#CCC">作者：{$realname}</span>
						<span style="margin-right: 20px;color:#CCC">发布时间：{date('Y-m-d',strtotime($inputtime))}</span>
						<span style="margin-right: 20px;color:#CCC">点击量：<span id="hits"></span></span>
						<script language="JavaScript" src="{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}"></script>
					</p>
					{$content}
					 
  

                                

 <div id="Article">
			<div class="content">
			{$content}
			{if $allow_visitor==1}
			
			<?php
			$vflv=$_REQUEST["flv"];
			$vflv=urldecode($vflv);
			?>
			<!--myplayer/begin-->
			{if $vflv<>""}
			<div id="myplayer">
			  <!--酷播迷你 CuPlayerMiniV3.0 代码开始-->
			  <script type="text/javascript" src="/statics/CuPlayer/Images/swfobject.js"></script>
			  <div id="CuPlayer" > <strong>IT技术成就梦想 提示：您的Flash Player版本过低，请<a href="http://www.CuPlayer.com/" >点此进行播放器升级</a>！</strong> </div> 
			<script type=text/javascript>
			<!--
			//酷播迷你：官方连播代码示例//
			var CuPlayerList ="{$vflv}"
			var sp =CuPlayerList.split("|")  
			var num = sp.length;
			var video_index = 0;
			function getNext(pars)
			{	
			  if(video_index < num-1)
				{
					video_index++;
					so.addVariable("CuPlayerFile",sp[video_index]);
					so.write("CuPlayer");	
				}
				else
				{
				video_index = 0;
				so.addVariable("CuPlayerFile",sp[video_index]);
				so.write("CuPlayer");	
				}
			}
			function changeStream(CuPlayerFile){
			so.addVariable("CuPlayerFile",sp[CuPlayerFile]);
			so.write("CuPlayer");	
			}

			CuPlayerFile =sp[video_index];
			var so = new SWFObject("/statics/CuPlayer/CuPlayerMiniV3_Black_S.swf","CuPlayer","600","400","9","#000000");
			so.addParam("allowfullscreen","true");
			so.addParam("allowscriptaccess","always");
			so.addParam("wmode","opaque");
			so.addParam("quality","high");
			so.addParam("salign","lt");
			so.addVariable("CuPlayerFile",CuPlayerFile);
			so.addVariable("CuPlayerImage","/statics/CuPlayer/Images/flashChangfa2.jpg");
			so.addVariable("CuPlayerLogo","/statics/CuPlayer/Images/logo.png");
			so.addVariable("CuPlayerShowImage","true");
			so.addVariable("CuPlayerWidth","600");
			so.addVariable("CuPlayerHeight","400");
			so.addVariable("CuPlayerAutoPlay","true");
			so.addVariable("CuPlayerAutoRepeat","false");
			so.addVariable("CuPlayerShowControl","true");
			so.addVariable("CuPlayerAutoHideControl","false");
			so.addVariable("CuPlayerAutoHideTime","6");
			so.addVariable("CuPlayerVolume","80");
			so.addVariable("CuPlayerGetNext","false");
			so.write("CuPlayer");	

			//-->
			</script>
		  <!--酷播迷你 CuPlayerMiniV3.0 代码结束-->
		</div>
		{else}
		
		<br />
		{/if}
		
		<!--myplayer/end-->
			
				<!--内容关联投票-->
				{if $voteid}<script language="javascript" src="{APP_PATH}index.php?m=vote&c=index&a=show&action=js&subjectid={$voteid}&type=2"></script>{/if}
                
			{else}
				<CENTER><a href="{APP_PATH}index.php?m=content&c=readpoint&allow_visitor={$allow_visitor}"></a></CENTER>
			{/if}
			</div>
			
          </div>
      
      
      
  </div>
		
				</div>
			</div>
		</div>
		
		<div id="footer">
			<div id="div6">
				Copyright &copy; 2020 河北农业大学学生处 All rights reserved.
			</div>
			<div id="div7">
				<span>地址：河北省保定市莲池区灵雨寺街289号</span>
				<span>邮编：071001</span>
				<span>联系电话：0312-7526853</span>
				<span>工作邮箱：xueshengchu@hebau.edu.cn</span>
			</div>
		</div>
		<div id="outerdiv" style="position:fixed;top:0;left:0;background:rgba(0,0,0,0.7);z-index:2;width:100%;height:100%;display:none;">
		    <div id="innerdiv" style="position:absolute;">
		        <img id="bigimg" style="border:5px solid #fff;" src="" />
		    </div>
		</div> 
		<script src="/js/jquery-1.8.3.min.js"></script>
		<script src="/js/main.js"></script>
		<script type="text/javascript">
			//图片放大
			$(function(){  
			        $(".content-box img").click(function(){  
			            var _this = $(this);//将当前的pimg元素作为_this传入函数  
			            imgShow("#outerdiv", "#innerdiv", "#bigimg", _this);  
			        });  
			    });  
			
			    function imgShow(outerdiv, innerdiv, bigimg, _this){  
			        var src = _this.attr("src");//获取当前点击的pimg元素中的src属性  
			        $(bigimg).attr("src", src);//设置#bigimg元素的src属性  
			      
			            /*获取当前点击图片的真实大小，并显示弹出层及大图*/  
			        $("<img/>").attr("src", src).load(function(){  
			            var windowW = $(window).width();//获取当前窗口宽度  
			            var windowH = $(window).height();//获取当前窗口高度  
			            var realWidth = this.width;//获取图片真实宽度  
			            var realHeight = this.height;//获取图片真实高度  
			            var imgWidth, imgHeight;  
			            var scale = 0.8;//缩放尺寸，当图片真实宽度和高度大于窗口宽度和高度时进行缩放  
			              
			            if(realHeight>windowH*scale) {//判断图片高度  
			                imgHeight = windowH*scale;//如大于窗口高度，图片高度进行缩放  
			                imgWidth = imgHeight/realHeight*realWidth;//等比例缩放宽度  
			                if(imgWidth>windowW*scale) {//如宽度扔大于窗口宽度  
			                    imgWidth = windowW*scale;//再对宽度进行缩放  
			                }  
			            } else if(realWidth>windowW*scale) {//如图片高度合适，判断图片宽度  
			                imgWidth = windowW*scale;//如大于窗口宽度，图片宽度进行缩放  
			                            imgHeight = imgWidth/realWidth*realHeight;//等比例缩放高度  
			            } else {//如果图片真实高度和宽度都符合要求，高宽不变  
			                imgWidth = realWidth;  
			                imgHeight = realHeight;  
			            }  
			                    $(bigimg).css("width",imgWidth);//以最终的宽度对图片缩放  
			              
			            var w = (windowW-imgWidth)/2;//计算图片与窗口左边距  
			            var h = (windowH-imgHeight)/2;//计算图片与窗口上边距  
			            $(innerdiv).css({"top":h, "left":w});//设置#innerdiv的top和left属性  
			            $(outerdiv).fadeIn("fast");//淡入显示#outerdiv及.pimg  
			        });  
			          
			        $(outerdiv).click(function(){//再次点击淡出消失弹出层  
			            $(this).fadeOut("fast");  
			        });  
			    }  
			
		</script>
	</body>
</html>
